package cn.ad.server.domain.ad;

import java.io.Serializable;
import java.util.Date;

public class GeoCity implements Serializable {

	private static final long serialVersionUID = 1801683041161930054L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "geocity";

	private int id;
	private int stateId;
	private String name;
	private int defaultFlg;
	private String pinyin;
	private int cityLevel;
	private int isMajorCity;
	private int status;
	private Date updateTime;
	private String fullName;
	private String englishName;
	
	public static String cacheKey(long id) {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getStateId() {
		return stateId;
	}

	public void setStateId(int stateId) {
		this.stateId = stateId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getDefaultFlg() {
		return defaultFlg;
	}

	public void setDefaultFlg(int defaultFlg) {
		this.defaultFlg = defaultFlg;
	}

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public int getCityLevel() {
		return cityLevel;
	}

	public void setCityLevel(int cityLevel) {
		this.cityLevel = cityLevel;
	}

	public int getIsMajorCity() {
		return isMajorCity;
	}

	public void setIsMajorCity(int isMajorCity) {
		this.isMajorCity = isMajorCity;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}
	
	
}
